<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .box{
            position: relative;
            width: 310px;
            height: 480px;
            margin: 100px auto;
        }
        img{
            position: absolute;
            display: block;
            box-shadow: -2px -2px 2px white , 2px 2px 2px black;
            transition: 0.8s;
            transform-origin: bottom center;
        }
        .box:hover img:nth-child(1){
            transform: rotate(-40deg);
        }
        .box:hover img:nth-child(2){
            transform: rotate(-30deg);
        }
        .box:hover img:nth-child(3){
            transform: rotate(-20deg);
        }
        .box:hover img:nth-child(4){
            transform: rotate(-10deg);
        }
        .box:hover img:nth-child(5){
            transform: rotate(0deg);
        }
        .box:hover img:nth-child(6){
            transform: rotate(10deg);
        }
        .box:hover img:nth-child(7){
            transform: rotate(20deg);
        }
        .box:hover img:nth-child(8){
            transform: rotate(30deg);
        }
        .box:hover img:nth-child(9){
            transform: rotate(40deg);
        }
    </style>
</head>
<body>
    <div class="box">
        <img src="素材/pk1.png" alt="">
        <img src="素材/pk2.png" alt="">
        <img src="素材/pk1.png" alt="">
        <img src="素材/pk2.png" alt="">
        <img src="素材/pk1.png" alt="">
        <img src="素材/pk2.png" alt="">
        <img src="素材/pk1.png" alt="">
        <img src="素材/pk2.png" alt="">
        <img src="素材/pk1.png" alt="">
    </div>
</body>
</html>